package com.yf.system.modules.points.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.util.Date;

/**
* <p>
* 积分日志实体类
* </p>
*
* @author 聪明笨狗
* @since 2021-02-20 09:09
*/
@Data
@TableName("el_user_points")
public class UserPoints extends Model<UserPoints> {

    private static final long serialVersionUID = 1L;

    /**
    * ID
    */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
    * 用户ID
    */
    @TableField("user_id")
    private String userId;

    /**
    * 获得积分
    */
    private Integer points;

    /**
    * 获取时间
    */
    @TableField("create_time")
    private Date createTime;

    /**
    * 获取描述
    */
    @TableField("ref_remark")
    private String refRemark;

    /**
    * 引用ID
    */
    @TableField("ref_id")
    private String refId;

}
